import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import App from './App.vue'

const routes = Object.values(import.meta.globEager('./views/*/router.ts')).map(v => v.default || v)
console.log(routes)
createApp(App)
.use(createRouter({
  routes,
  history: createWebHashHistory('./')
}))
.mount('#app')
